﻿using BPMN.Application.Contracts.DTO.Request.Unit;
using BPMN.Application.Contracts.DTO.Response;
using BPMN.Domain.Entity.Unit;
using BPMN.DomianShare;

namespace BPMN.Application.IService
{
    public interface IUnitService : IAppServiceBase<Units>, IScoped
    {
        Task<ResultResponseDto<int>> AddUnit(Units dto);

        Task<ResultResponseDto<int>> DeleleUnit(int id);

        Task<ResultResponseDto<UnitDto>> GetUnit(int pageIndex, int pageSize, string name, string notes);

        Task<ResultResponseDto<List<Units>>> GetUnits();


        Task<ResultResponseDto<Units>> GetUnitById(int id);

        Task<ResultResponseDto<int>> UpdateUnit(Units dto);
    }
}
